package com.sudo.dao.admin.entity;

import com.sudo.dao.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
@Data
@Table(name = "sys_dict")
@EqualsAndHashCode(callSuper = true)
public class SysDict extends BaseEntity {
    /**
     * 乐观锁
     */
    @Id
    private Integer id;

    /**
     * 字典名称
     */
    @Column(name = "dict_name")
    private String dictName;

    /**
     * 代码
     */
    @Column(name = "dict_code")
    private String dictCode;

    /**
     * 父级代码
     */
    @Column(name = "parent_code")
    private String parentCode;

    /**
     * 备注
     */
    private String note;

    public interface Field{
        String id = "id";
        String dictName = "dictName";
        String dictCode = "dictCode";
        String parentCode = "parentCode";
        String note = "note";
    }
}
